<template>
    <a-card>
        <title-name title="二次报审" />
        <a-form-model
                ref="form"
                :label-col="{ lg: { span: 6 }, sm: { span: 6 } }"
                :wrapper-col="{ lg: { span: 18 }, sm: { span: 18 } }"
        >
            <a-row>
                <a-col
                        :md="8"
                        :sm="8"
                >
                    <a-form-model-item
                            label="专家论证会议时间"
                            prop="exportMeetTime"
                    >
                        <a-date-picker
                                v-model="form.changeForm.exportMeetTime"
                                placeholder="请选择专家论证会议时间"
                                format="YYYY-MM-DD"
                                value-format="YYYY-MM-DD"
                                disabled
                                allow-clear
                        />
                    </a-form-model-item>
                </a-col>
                <a-col
                        :md="8"
                        :sm="8"
                >
                    <a-form-model-item
                            label="专家组结论"
                            prop="conclusion"
                    >
                        <a-select
                                v-model="form.changeForm.conclusion"
                                placeholder="请选择"
                                allow-clear
                                disabled
                        >
                            <a-select-option
                                    v-for="item in conclusionData"
                                    :key="item.id"
                                    :value="item.id"
                            >
                                {{ item.name }}
                            </a-select-option>
                        </a-select>
                    </a-form-model-item>
                </a-col>
                <a-col
                       :md="8"
                       :sm="8"
                >
                    <a-form-model-item
                            label="报审间隔时间(天)"
                            prop="intervaDateNum"
                    >
                        <BaseInput
                                v-model="form.changeForm.intervaDateNum"
                                disabled
                        />
                    </a-form-model-item>
                </a-col>
            </a-row>
            <a-row>
                <a-col
                        :md="24"
                        :sm="24"
                >
                    <a-form-model-item
                            label="参加人员"
                            prop="people"
                    >
                        <BaseInput
                                v-model="form.changeForm.people"
                                disabled
                                type="textarea"
                        />
                    </a-form-model-item>
                </a-col>
            </a-row>
            <a-row>
                <a-col
                        :md="8"
                        :sm="8"
                >
                    <a-form-model-item
                            label="预计开始实施时间"
                            prop="implementationDate"
                    >
                        <a-date-picker
                                v-model="form.changeForm.implementationDate"
                                disabled
                                placeholder="请选择预计实施时间"
                                format="YYYY-MM-DD"
                                value-format="YYYY-MM-DD"
                                allow-clear
                        />
                    </a-form-model-item>
                </a-col>
                <a-col
                        :md="8"
                        :sm="8"
                >
                    <a-form-model-item
                            label="预计实施结束时间"
                            prop="implementationEndDate"
                    >
                        <a-date-picker
                                v-model="form.changeForm.implementationEndDate"
                                disabled
                                placeholder="预计实施结束时间"
                                format="YYYY-MM-DD"
                                value-format="YYYY-MM-DD"
                                allow-clear
                        />
                    </a-form-model-item>
                </a-col>
                <a-col :md="8" :sm="8">
                    <!-- 实施责任人插槽 -->
                    <a-form-model-item label="实施责任人"  prop="implementationUserId">
                        <!-- 查看西南公司下所有人 -->
                        <ASelectOrgPeople v-model="form.changeForm.implementationUserId"    disabled :show-search="true" :orgId="'53085e2c9f1f4685801ef31994f57c49'"></ASelectOrgPeople>
                    </a-form-model-item>
                </a-col>
            </a-row>
            <a-row>
                <a-col
                        :md="24"
                        :sm="24"
                >
                    <a-form-model-item
                            label="附件上传"
                            prop="fileArrays"
                            style="display: flex"
                            class="filetalbe"
                    >
                        <fileTable
                                :business-code="'TM05'"
                                :file-info="form.changeForm.changeFileInfo"
                                disabled
                                :fileTalbe="fileTalbe2"
                        />
                    </a-form-model-item>
                </a-col>
            </a-row>
        </a-form-model>
    </a-card>
</template>

<script>
  import { listOption } from '@/api/technical/approvalPlan'
  import ASelectOrgPeople from '@/components/Select/ASelectOrgPeople.vue'
  import fileTable from './fileTable.vue'
  export default {
    name: 'secondInfo',
    components: {
      ASelectOrgPeople,
      fileTable
    },
    props: {
      form: {
        type: Object,
        default() {return {}}
      }
    },
    data() {
      return {
        conclusionData: [],
        fileTalbe2: [
          { id: 1, fileName: '修改后的专项施工方案', fileList: [] },
          { id: 2, fileName: '专家论证会议签到表及现场会议照片', fileList: [] },
          { id: 3, fileName: '专家论证审查意见表', fileList: [] },
          { id: 4, fileName: '其他', fileList: [] }
        ],
      }
    },
    created() {
      this.listOption()
    },
    methods: {
      listOption() {
        listOption({ type: '8' }).then((res) => {
          this.conclusionData = res.data
        })
      }
    }
  }
</script>

<style scoped>

</style>